import request from '@/utils/request'

// 查询CRM客户公海列表
export function listCustomerHighSeas(query) {
  return request({
    url: '/crm/customerHighSeas/list',
    method: 'get',
    params: query
  })
}

// 查询CRM客户公海详细
export function getCustomerHighSeas(id) {
  return request({
    url: '/crm/customerHighSeas/' + id,
    method: 'get'
  })
}

// 新增CRM客户公海
export function addCustomerHighSeas(data) {
  return request({
    url: '/crm/customerHighSeas',
    method: 'post',
    data: data
  })
}

// 修改CRM客户公海
export function updateCustomerHighSeas(data) {
  return request({
    url: '/crm/customerHighSeas',
    method: 'put',
    data: data
  })
}

// 删除CRM客户公海
export function delCustomerHighSeas(id) {
  return request({
    url: '/crm/customerHighSeas/' + id,
    method: 'delete'
  })
}

//客户转客户公海
export function transferCustomerToCustomerHighSeas(data) {
  return request({
    url: '/crm/customerHighSeas/transferCustomerToCustomerHighSeas',
    method: 'post',
    data: data
  })
}

//客户公海抢客户
export function customerHighSeasToCustomer(data) {
  return request({
    url: '/crm/customerHighSeas/transferCustomerHighSeasToCustomer',
    method: 'post',
    data: data
  })
}
